#ifndef CPRIMSPHERE_H
#define CPRIMSPHERE_H

#include "IPrimitive.h"
#include "toolTypes.h"

class CPrimSphere : public IPrimitive
{
private:

	float m_radius;
	

public:
	CPrimSphere(float radius);
	~CPrimSphere();

	bool intersect(const CRay& ray, float& dist, bool useGlobalCoordinates);
	void computeNormal(const CRay& ray, float dist, CVector3f& normal)const;
	bool isInside(const CVector3f& p)const;
};

#endif